﻿using System;
using System.Collections.Generic;
using System.Text;
using Tauren.Business.Entity.Global;
using Tauren.Business.Entity.Output;

namespace Tauren.Business.DLL.PositionDLL
{
    public interface IPositionBusiness : Base.IBaseDLL
    {
        /// <summary>
        /// 分页获取信息
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        List<PagePositionTable> Pages(QueryModel queryModel, out long Total);

        /// <summary>
        /// 判断编码是否重复
        /// </summary>
        /// <param name="AutoId"></param>
        /// <param name="PerCode"></param>
        /// <returns></returns>
        bool IsPermissionCodeRepeat(long AutoId, string PosCode);

        /// <summary>
        /// 获取序号
        /// </summary>
        /// <returns></returns>
        double GetSeq();
        /// <summary>
        /// 获取角色下的人员
        /// </summary>
        /// <param name="PositionId"></param>
        /// <returns></returns>
        List<PersonInfo> GetEmployee(int PositionId);
    }
}
